import { request } from "../request";

export const apiSysMenuLoginMenuTreeGet = ()=>{
    return request({
        url: '/api/sysMenu/loginMenuTree',
        method: 'get'
    })
}

export const apiSysMenuListGet = (data:any)=>{
    return request({
        method:"GET",
        url:"/api/sysMenu/list",
        data
    })
}

export const apiSysMenuAddPost = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/sysMenu/add",
        data
    })
}

export const apiSysMenuUpdatePost = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/sysMenu/update",
        data
    })
}

export const apiSysMenuDelete = (data:any)=>{
    return request({
        method:"DELETE",
        url:"/api/sysMenu/delete",
        data
    })
}